import request from '@/router/axios';
const urlPrefix = '/admin';

export function list(data) {
    return request.post(urlPrefix + '/goods_selected/list', data);
}
export function create(data) {
    return request.post(urlPrefix + '/goods_selected/add', data);
}
export function update(data) {
    return request.post(urlPrefix + '/goods_selected/modify', data);
}
export function removeById(id) {
    return request.post(urlPrefix + '/goods_selected/delete', {
        id
    });
}
export function removeByIds(ids) {
    return request.post(urlPrefix + '/goods_selected/batch_delete', {
        ids
    });
}

export function listExclude(params) {
    return request.post(urlPrefix + '/goods_selected/list_exclude', params);
}

export function check({ id, status, checkRemark }) {
    return request.post(urlPrefix + '/goods_selected/check', { id, status, checkRemark });
}
